package io.renren.modules.data.mongo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * </p>
 *
 * @author yuxiaobin
 * @date 2017/11/21
 */
@RestController
@RequestMapping("/mongo")
public class CustomerController {

    @Autowired
    CustomerRepository customerRepository;

    @GetMapping("/users")
    public Object getUsers(){
        return customerRepository.findAll();
    }
}
